﻿/**
 * @file menu_key_process.h
 * @brief this is a brief description
 * @details this is the detail description.
 * @author fulong 
 * @data 7/31/2014
 * @version 1.0
 * @par Copyright (c):
 * @par First build
 *     version: fulong 
 *     data: 7/31/2014
 */
#ifndef __MENU_KEY_PROCESS_H__
#define __MENU_KEY_PROCESS_H__
#include "../../hal_include/hal_types.h"

extern void widget_display(void);
extern void menu_inner_process(void);
extern void change_menu(uint8 menu_id);
extern void register_ctrllable_table(uint8 widget_id);
extern uint8 get_left_ctrllable_widget(void);
extern uint8 get_right_ctrllable_widget(void);
extern void set_ctrllable_widget_pointer(uint8 widget_id);
extern void ctrllable_widget_var_up(uint8 menu_changing_widget_num, uint8 max_value);
extern void ctrllable_widget_var_down(uint8 menu_changing_widget_num, uint8 max_value);
extern void clr_ctrllable_widget_flash(uint8 menu_changing_widget_num);
extern void set_ctrllable_widget_flash(uint8 menu_changing_widget_num);
extern void get_ctrllable_table_range(void);
extern uint16 get_ctrllable_widget_var_value(uint8 menu_changing_widget_num);
extern void set_ctrllable_widget_var_value(uint8 menu_changing_widget_num, uint16 widget_value);
extern void set_ctrllable_widget_txt_value(uint8 menu_changing_widget_num, const uint8 *txt_value);
extern uint8  get_ctrllable_right_edge(void);
extern uint8  get_ctrllable_left_edge(void);
extern uint8  get_ctrllable_widget_pointer(void);

#endif /* __MENU_KEY_PROCESS_H__ */
